home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part2 / 10587 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1015 b 

  1. Path: news.ptd.net!news
  2. From: jeffw667@postoffice.ptd.net (Jeffrey Wilson)
  3. Newsgroups: comp.lang.c
  4. Subject: Please Assist Student programming C
  5. Date: 18 Mar 1996 03:49:06 GMT
  6. Organization: ProLog - PenTeleData, Inc.
  7. Message-ID: <4iimfi$dk@ns2.ptd.net>
  8. NNTP-Posting-Host: cs1-11.pcn.ptd.net
  9. Mime-Version: 1.0
  10. Content-Type: Text/Plain; charset=ISO-8859-1
  11. X-Newsreader: WinVN 0.99.5
  12.  
  13. Can someone please help me ???  I am getting a "incompatibility type 
  14. for arg 2 of pow"  Here is my code:
  15.  
  16. double expo(void)
  17. {
  18.   double base = 0;
  19.   double expon = 0;
  20.   double result = 0;
  21.   
  22.   printf("Input the base of the calculation: \n");
  23.   scanf("%lf",&base);
  24.   printf("Input the exponent: \n");
  25.   scanf("%lf",&expon);
  26.   
  27.   result = pow(base,expon);
  28.  
  29.   printf("the answer of %lf raised to the %lf power is : %lf 
  30. \n",base,expon,result);
  31.  
  32.   return(result);
  33. }
  34.  
  35.  
  36. Please help.  My instructor is gone for the week and I need to have 
  37. this working by Friday the 22.
  38.  
  39. Thanks for any help
  40.  
  41. Please E-mail me at jeffw667@postoffice.ptd.net
  42.  
  43.